package dhm.com.hpx.utils;

import com.zhy.http.okhttp.callback.Callback;

import java.io.IOException;

import dhm.com.hpx.entity.AddVideoBean;
import okhttp3.Response;

/**
 * Created by admin
 * 2019/4/24
 */
public  abstract class VideoCallback extends Callback<AddVideoBean> {

    @Override
    public AddVideoBean parseNetworkResponse(Response response, int id) throws IOException {
        String string = response.body().string();
        return JsonUtil.jsonToBean(string,AddVideoBean.class);
    }
}
